package com.lanchetech.dao;

import com.lanchetech.bean.dto.LotteryNewRecordDto;
import com.lanchetech.bean.dto.LotteryOrderDto;
import com.lanchetech.bean.request.LotteryOrderReq;
import com.lanchetech.bean.request.QueryLotteryOrderReq;
import com.lanchetech.bean.response.LotteryOrderResp;
import com.lanchetech.bean.response.ResultData;
import com.lanchetech.bean.vo.LotteryNewRecordVo;
import com.lanchetech.bean.vo.LotteryOrderVo;
import com.lanchetech.bean.vo.ShopPrizeVo;
import com.lanchetech.entity.LotteryOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LotteryOrderMapper {
    void insert(LotteryOrder lotteryOrder);

    LotteryOrderVo lotteryOrder(LotteryOrderDto lotteryOrderDto);

    List<LotteryNewRecordVo> lotteryNewRecord(LotteryNewRecordDto lotteryNewRecordDto);

    void updateAddress(@Param("lotteryOrderId") Long lotteryOrderId,@Param("addressId") Long addressId);

    List<LotteryOrderResp> queryLotteryOrder(LotteryOrderReq lotteryOrderReq);

    LotteryOrder findByPrimaryKey(@Param("id") Long id);

    int updateLogisticsByPrimaryKey(LotteryOrder lotteryOrder);
}
